dnl @synopsis AX_DEBUG_CHECK
dnl
dnl Test if the user wants to enable debugging support
dnl
dnl This will set DEBUG
dnl
dnl @author Hunter Morris  <huntermorris@gmail.com>
dnl @version 2008-03-18
AC_DEFUN([AX_DEBUG_CHECK], [
    AC_ARG_ENABLE([debug],
	AS_HELP_STRING([--enable-debug],[Enable debugging support]),
	debug=$enableval,
	debug=""
    )

    if test "x${debug}" = "xyes"; then
       AC_DEFINE(DEBUG,, Enable debugging)
    fi
])
